def isAbbreviation(words, s):
    i = 0  # 用于遍历字符串数组 words 的指针
    j = 0  # 用于遍历字符串 s 的指针

    while i < len(words) and j < len(s):
        if words[i][0] == s[j]:
            j += 1
        i += 1

    return j == len(s)

# 测试示例
words = ["alice","bob","charlie"]
s = "abc"
print(isAbbreviation(words, s))  # 输出: True

words = ["an","apple"]
s = "a"
print(isAbbreviation(words, s))  # 输出: False

words = ["never","gonna","give","up","on","you"]
s = "ngguoy"
print(isAbbreviation(words, s))  # 输出: True